package com.general.common.security.entity;

import java.io.Serializable;
import java.util.Collection;

import com.general.common.model.BaseModel;

public class User extends BaseModel implements Serializable {

	private static final long serialVersionUID = -4966457384550335239L;

	private String userid;//用户ID
	private String username;//登录名
	private String password;//密码
	private String nickname;//昵称
	private boolean enable;//状态
	private Collection<Role> roles;//拥有角色
	private Collection<Permission> pmss ;//拥有权限
	private String type;//是否答卷者
	
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the userid
	 */
	public String getUserid() {
		return userid;
	}

	/**
	 * @param userid the userid to set
	 */
	public void setUserid(String userid) {
		this.userid = userid;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the nickname
	 */
	public String getNickname() {
		return nickname;
	}

	/**
	 * @param nickname the nickname to set
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	/**
	 * @return the roles
	 */
	public Collection<Role> getRoles() {
		return roles;
	}

	/**
	 * @param roles the roles to set
	 */
	public void setRoles(Collection<Role> roles) {
		this.roles = roles;
	}

	/**
	 * @return the enable
	 */
	public boolean isEnable() {
		return enable;
	}

	/**
	 * @param enable the enable to set
	 */
	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	/**
	 * @return the pmss
	 */
	public Collection<Permission> getPmss() {
		return pmss;
	}

	/**
	 * @param pmss the pmss to set
	 */
	public void setPmss(Collection<Permission> pmss) {
		this.pmss = pmss;
	}
	
	
	
}
